﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Derrick.AttackTest
{
    public partial class SetSpoofParameters : Form
    {
        public SetSpoofParameters()
        {
            InitializeComponent();
        }

        private void _submitButton_Click(object sender, EventArgs e)
        {
            SharedStorage.Instance.PhonyIpAddress = _ipToSpoofTextBox.Text.Replace(" ", String.Empty);
            SharedStorage.Instance.SourcePort = Convert.ToUInt16(_listenToPortTextBox.Text);
            SharedStorage.Instance.DestinationIpAddress = _destinationIPTextBox.Text.Replace(" ", String.Empty);
            SharedStorage.Instance.DestinationPort = Convert.ToUInt16(_destinationPortTextBox.Text);
            SharedStorage.Instance.SourceHardwareAddress = _sourceHardwareTextBox.Text;
            SharedStorage.Instance.DestinationHardwareAddress = _destinationHwAddressTextBox.Text;
            Close();
        }

        private void _listenToPortTextBox_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
